//
//  ROLogonReturnModel.swift
//  NeuFood
//
//  Created by yangjingxin on 2017/10/12.
//  Copyright © 2017年 yangjingxin. All rights reserved.
//

import UIKit

class ROLogonReturnModel: NSObject {

    var msg:NSString!
    var userid:NSString!
    
    class func logonReturnModelWithDict(_ dict: NSDictionary )
        -> ROLogonReturnModel{
            let model = ROLogonReturnModel()
            //根据字典，进行模型的初始化
            let userid = dict.object(forKey: "userid")as! NSString
            model.userid = userid
            
            if userid == "0"{
                let msg = "用户名或者密码错误"
                model.msg = msg as NSString
            }
            return model
    }
    
}
